package pro.lingwu.station.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pro.lingwu.station.dto.db.Admin;

import java.util.List;

/**
 * @author @lingwu
 * @date created in 2021/11/17
 */
@Mapper
public interface AdminMapper {

    void addAdmin(Admin admin);

    void rmAdmin(String account);

    Admin findAdminBy(String account);

    void updateAdmin(Admin admin);

    List<Admin> getAdmins();

    long getTotal();

}
